package com.zbzly.reactive.reactiverbac.model.dto;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;


@Document(indexName = "es_user")
@Data
public class User {
    @Id
    private Long id;
    @Field(type = FieldType.Text)
    private String username;
    private String password;
    private String email;
    private String phone;
}
